package com.my.okhttps.test;

import com.my.core.api.R;
import com.my.okhttps.test.service.IHealthService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author timo 2021/3/15
 */
@RestController
@RequestMapping("/health/luzhou")
@Slf4j
public class HealthController {

    @Autowired
    private IHealthService iHealthService;

    @GetMapping(value = "/getoken")
    public R<?> getoken(){
        return R.data(iHealthService.getoken());
    }

    @GetMapping(value = "/getAllYiyuan")
    public R<?> getAllYiyuan(String token){
        return R.data(iHealthService.getAllYiyuan(token));
    }

    @GetMapping(value = "/getkeshi")
    public R<?> getkeshi(String token){
        return R.data(iHealthService.getkeshi(token));
    }


}
